<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>

        var fun2 = undefined ;

        console.log(fun2);
        
        // fun2() ;    
       
        // 声明函数
        var fun2 = function() {
            console.log('fun2');
        }
    </script>
</body>
</html>